# -*- coding: utf-8 -*-



import  wx
import  os
import sys



from outputview import log
from outputview import console
from outputview import stderr

class OutputPanel(wx.Notebook):
    def __init__(self,parent, size =(21,21) ):
        wx.Notebook.__init__(self, parent, -1, size=size,
                         #style=
                         #wx.NB_TOP # | wx.NB_MULTILINE
                         #wx.NB_BOTTOM
                         #wx.NB_LEFT
                         #wx.NB_RIGHT
                         )
        #self.log = logtc.LogTextCtrl()
        
        win = console.Console(self)
        self.AddPage(win, u"控制台")        
        win3 = stderr.Stderr(self)
        self.AddPage(win3, u"错误")
        win2 = log.Log(self)
        self.AddPage(win2, u"日志")
     
    def onKeyDown(self,event):
        key = chr(event.GetKeyCode())
        print key
        event.Skip()
  #
